package com.hqyj.crmdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 何万林
 * @since 2022-10-17
 */
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户编号")
    @TableId(value = "u_id", type = IdType.AUTO)
    private Integer uId;

    @ApiModelProperty("用户名称")
    private String uName;

    @ApiModelProperty("用户密码")
    private String uPassword;

    @ApiModelProperty("用户类型")
    private Integer rId;

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword;
    }

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    @Override
    public String toString() {
        return "User{" +
            "uId = " + uId +
            ", uName = " + uName +
            ", uPassword = " + uPassword +
            ", rId = " + rId +
        "}";
    }
}
